package com.wing.productionPlan.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.wing.productionPlan.model.entity.RequirePlan;
import com.wing.productionPlan.model.entity.RequirePlanItem;
import com.wing.productionPlan.model.response.RequirePlanItermVO;
import com.wing.productionPlan.model.response.RequirePlanVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * 需求计划详情表-Dao
 *
 * @author
 */
@Mapper
public interface RequirePlanItermDao extends BaseMapper<RequirePlanItem> {

    /**
     * 查询详情列表
     * @param pg
     * @param map
     * @return
     */
    List<RequirePlanItermVO> selectPlanItermList(@Param("page") Page<RequirePlanItermVO> pg, @Param("map") Map map);

    RequirePlanItermVO getPlanItermById(Long id);

}
